Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typing] Added types to adapter.ts #2922

Merged
merged 11 commits into from
Jan 9, 2025
Merged

Conversation

GermanBluefox
Copy link
Contributor

@GermanBluefox GermanBluefox commented Sep 24, 2024

Added some typing to adapter.ts
mostly for 'adapter.systemConfig' (I thought that it is content of 'systetm.config' object)

Tests

  • I have added tests to test this feature
  • It is not possible to test this feature

@GermanBluefox
Copy link
Contributor Author

This PR is really easy to merge and it is manageable

packages/adapter/src/lib/adapter/adapter.ts Outdated Show resolved Hide resolved
schemas/iobroker.json Outdated Show resolved Hide resolved
schemas/iobroker.json Show resolved Hide resolved

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • schemas/iobroker.json: Language not supported
@foxriver76
Copy link
Collaborator

#3001 as there seem to be some inconsistencies with maxQueue, it only affects states DB (used by adapter.ts) not other DBs, hence I removed the dead code to clean this up and move it correctly to states DB only + fix the initial iobroker.json. Just mergeinto your branch if it is fine for you.

@foxriver76
Copy link
Collaborator

This PR is really easy to merge and it is manageable

Generally yes but checking in depth then brings up things like now and 1.5 hours go into the land ;-)

* maxQueue only has effects for states db in adapter.ts

- so remove this dead code from dbs
- cleanup the loglevel handling

* fix typo

* cleanup imports

* casing fixed again

* build schema
@foxriver76 foxriver76 merged commit fe9fbf6 into master Jan 9, 2025
15 checks passed
@foxriver76 foxriver76 deleted the types-adapter-system-config branch January 9, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants